package cn.stylefeng.guns.weixin.common;

import com.alibaba.fastjson.JSON;

public class JsonUtil {

    /**
     * 判断是否为json字符串
     * @param str
     * @return boolean
     */
    public static boolean isJSON(String str) {
        boolean result = false;
        try {
            Object obj= JSON.parse(str);
            result = true;
        } catch (Exception e) {
            result=false;
        }
        return result;
    }
}
